package home_work4;
import java.util.Date;
public class Emp {
	private String name;
	private int age;
	private String gender;
	private int salary;
	private Date hiredate;
	public  Emp() {}
	public Emp(String name1,int age1,String gender1,int salary1,Date hiredate1) {
		name=name1;
		age=age1;
		gender=gender1;
		salary=salary1;
		hiredate=hiredate1;
	}
	public  String toString() {
		return name+","+age+","+gender+","+salary+","+hiredate;
	}
	public boolean equals( Emp obj) {
		return(this.name==obj.name&&this.age==obj.age);
	}
}
